package com.qf.interfacedemo;

public class DogDemo {
    public static void main(String[] args) {

        Dog a = new Dog();
        a.lookHome();
        a.fly();
        a.eat();
        a.sleep();
        a.fire();
        System.out.println("===============");
        Animal b = a;
        b.eat();
        b.sleep();
        b.fly();
        b.fire();
        System.out.println("===============");
        Flyable c = a;
        c.fly();
        System.out.println("=================");
        Fireable d = a;
        d.fire();

    }
}
